package org.itboys.mobile.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.NotSaved;

/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 描述：众包_聊天_组_实体。
 *
 */
@Entity(value="ZhongBaoChatGroup", noClassnameStored=true)
public class ZhongBaoChatGroup extends BaseMongoEntity{
    private Long projectId;//项目ID。点对点聊天不需要此Id
    private String title;//群聊组标题
    private String memberIds;//组内用户ID集合，用小写逗号隔开
    @NotSaved
    private Integer number;//未读消息数量。根据用户的消息通知来实时统计
    private String lastedMsg;//最新消息
    public ZhongBaoChatGroup() {
    }

    public ZhongBaoChatGroup(Long projectId, String title, String memberIds) {
        this.projectId = projectId;
        this.title = title;
        this.memberIds = memberIds;

    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMemberIds() {
        return memberIds;
    }

    public void setMemberIds(String memberIds) {
        this.memberIds = memberIds;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getLastedMsg() {
        return lastedMsg;
    }

    public void setLastedMsg(String lastedMsg) {
        this.lastedMsg = lastedMsg;
    }
}
